package com.mathlearning.auth.dto.learning;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CourseProgressResponse {
    private Long courseId;
    private Integer totalVideos;
    private Integer completedVideos;
    private Integer progress;
    private LastWatchVideoInfo lastWatchVideo;
    private ContinueWatchVideoInfo continueWatchVideo;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class LastWatchVideoInfo {
        private Long id;
        private String title;
        private String chapterTitle;
    }

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ContinueWatchVideoInfo {
        private Long id;
        private String title;
    }
}




